<template>
  <div class="login">
    <Particles
      class="a"
      id="tsparticles"
      :particlesInit="particlesInit"
      :particlesLoaded="particlesLoaded"
      :options="options"
    />
    <login-panel class="panel"></login-panel>
  </div>
</template>

<script setup lang="ts">
import LoginPanel from './cpns/login-panel.vue'

import { loadFull } from 'tsparticles'

import { options } from './config/particles'
const particlesInit = async (engine: any) => {
  await loadFull(engine)
}

const particlesLoaded = async (container: any) => {
  console.log('Particles container loaded', container)
}
</script>

<style lang="less" scoped>
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: url('../../assets/img/bg.jpg');

  .a {
  }
  .panel {
    z-index: 1;
  }
}
</style>
